<!doctype html>
<html lang="en">

<%@ include file="Include_Professor_Imports.jsp"%>
<script>
		function checkForm()
		{
			var firstName = document.getElementById("firstName");
			var lastName = document.getElementById("lastName");
			var intExp = /^\d+$/;	
			var floatExp = /^[-+]?[0-9]+(\.[0-9]+)?$/;

			if (firstName.value == '' || firstName.value.indexOf('\\') !== -1 || firstName.value.indexOf('\'') !== -1 || firstName.value.indexOf('\"') !== -1)
			{
				alert('Please enter a valid First Name.')
				return false;
			} 
			if (lastName.value == '' || lastName.value.indexOf('\\') !== -1 || lastName.value.indexOf('\'') !== -1 || lastName.value.indexOf('\"') !== -1)
			{
				alert('Please enter a valid Last Name.')
				return false;
			} 
			return true;
		}
		
	</script>
<body>
<!-- HEADER -->
<%@ include file="Include_Professor_Header.jsp"%>

<section id="secondary_bar">
<div class="user"><!-- <a class="logout_user" href="#" title="Logout">Logout</a> -->
</div>
<div class="breadcrumbs_container"><article class="breadcrumbs"><a
	href="Home.jsp">Home</a>
<div class="breadcrumb_divider"></div>
<a class="current">Add New Student</a></article></div>
</section>
<!-- end of secondary bar -->

<%@ include file="Include_Professor_Menu.jsp"%>

<section id="main" class="column">

<%@ include file="Include_Professor_Message.jsp"%>

<form action="AddAndEditStudentServlet" method="post"><article
	class="module width_full"> <header>
<h3>New Student Form</h3>
</header>
<div class="module_content">

<fieldset style="width: 48%; float: left; margin-right: 3%;">
<label>First Name</label> 

<input style="width: 92%;" type="text" id="firstName"	name="studentFirstName"></fieldset>
<fieldset style="width: 48%; float: left;"><label>Last

Name</label> <input style="width: 92%;" id="lastName" type="text" name="studentLastName">
</fieldset>
<div class="clear"></div>
</div>
<footer>
<div class="submit_link"><!--					<select>--> <!--						<option>Draft</option>-->
<!--						<option>Published</option>--> <!--					</select>--> <input
	type="submit" value="Add" class="alt_btn" onclick="return checkForm()"> <input type="button"
	value="Reset"></div>
</footer> </article><!-- end of post new article --></form>


<div class="spacer"></div>
</section>


</body>

</html>